package chen.web.favorite;
import java.util.List;

import chen.web.user.Account;

public interface FavoriteManager {

	void add(Favoritable favoritable);
	
	void delete(Favorite favorite);
	
	List<Favorite> listFavorite(Account owner, Class<?> type, int beginOffset, int count);
	
	List<Favorite> listFavorite(Account owner, int beginOffset, int count);
	
	int amount(Account owner, Class<?> type);
	
	int amount(Account owner);
	
	Favorite getFavorite(int id);
	
}
